package com.gsmr.service.impl;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFFont;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.stereotype.Service;

import com.gsmr.dao.Train_infoDao;
import com.gsmr.entity.Train_info;
import com.gsmr.entity.User;
import com.gsmr.service.Train_infoService;

/**
 * 用户Service实现类
 * @author user
 *
 */
@Service("train_infoService")
public class Train_infoServiceImpl implements Train_infoService{

	@Resource
	private Train_infoDao train_infoDao;
	
	public List<Train_info> find(Map<String, Object> map) {
		return train_infoDao.find(map);
	}

	public Long getTotal(Map<String, Object> map) {
		return train_infoDao.getTotal(map);
	}

	public int update(Map<String, Object> map) {
		return train_infoDao.update(map);
	}

	public int add(Map<String, Object> map) {
		return train_infoDao.add(map);
	}

	public int delete(Map<String,Object> map) {
		return train_infoDao.delete(map);
	}

	public List<Train_info> findByTrainIds(Map<String,Object> map) {
		return train_infoDao.findByTrainIds(map);
	}

	public Train_info findByTrainId(Map<String,Object> map) {
		return train_infoDao.findByTrainId(map);
	}

}
